package com.zzc.emotisenseclassroom.dao.user;

import com.zzc.baseRepository.componet.impl.TableFile;
import com.zzc.baseRepository.componet.interfaces.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.type.JdbcType;
import org.springframework.stereotype.Repository;

import java.util.Arrays;
import java.util.List;

/**
 * Copyright Zzc
 * FileName: SchoolDao
 * Author:   Zzc
 * Date:     2024/4/2420:50
 * Description:学校信息表dao层
 * hISTORY:
 * <author>  <time>     <version>    <desc>
 * 作者姓名   修改时间       版本号       描述
 * Zzc                   1.0.0
 */
@Repository
@Mapper
public interface SchoolDao extends BaseDao {
    /**
     * 学校id
     */
    TableFile SCHOOL_ID = new TableFile("school_id", "schoolId", "学校id" , JdbcType.BIGINT, Long.class, SchoolDao.class);

    /**
     * 学校名称
     */
    TableFile SCHOOL_NAME = new TableFile("school_name", "schoolName", "学校名称" ,JdbcType.VARCHAR, String.class, SchoolDao.class);

    @Override
    default String getTableName() {
        return "z_school_info";
    }

    static List<TableFile> getInsertFields(){
        return Arrays.asList(SCHOOL_ID, SCHOOL_NAME);
    }
}
